<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加员工</title>
</head>
<body>
<h3>添加员工</h3>
	<form action="${pageContext.request.contextPath}/addEmployee"
		method="post">
		<table width="70%" >
			<tr>
				<td >姓名：
				<input type="text" name="name" /></td>
				
			</tr>
			<tr>
				<td >手机号：
				<input type="text" name="phone" /></td>
				
			</tr>
			<tr>
				<td >所属部门：
				  <c:forEach items="${allDepartments}" var="department">
			        <input type="radio" name="departmentId" value="${department.id}" >${department.name}
		          </c:forEach>
				</td>
				
			</tr>
			
			<tr>
				<td ><input type="submit" value="添加"/></td>
			</tr>
		</table>
	</form>
</body>
</html>